package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Floor;
import com.zzyl.nursing.vo.FloorVo;
import com.zzyl.nursing.vo.TreeVo;

import java.util.List;

/**
 * 楼层Service接口
 */
public interface IFloorService extends IService<Floor> {

    //查询楼层
    Floor selectFloorById(Long id);

    //新增楼层
    int insertFloor(Floor floor);

    //修改楼层
    int updateFloor(Floor floor);

    //批量删除楼层
    int deleteFloorByIds(Long[] ids);

    //根据状态查询楼层房间床位-树形结构
    List<TreeVo> getRoomAndBedByBedStatus(Integer status);

    //查询负责老人楼层
    List<Floor> selectAllByNur();

    //查询智能楼层
    List<FloorVo> getAllFloorsWithDevice();
}